#ifndef SINGLEPLAYER_H
#define SINGLEPLAYER_H

#include <QWidget>
#include <QPainter>
#include <QPaintEvent>
#include "chessboard.h"

namespace Ui {
class SinglePlayer;
}

class SinglePlayer : public QWidget
{
    Q_OBJECT

public:
    explicit SinglePlayer(QWidget *parent = nullptr);
    ~SinglePlayer();

    void paintEvent(QPaintEvent* ev);

private:
    Ui::SinglePlayer *ui;
    ChessBoard* chessBoard;

public slots:
    void set_chess(int pos[2]);

signals:
    void back(void);
};

#endif // SINGLEPLAYER_H
